<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{log_name} : {log_account_no}</title>
<link rel="shortcut icon" href="{dir_image}favicon.ico">
<link rel="stylesheet" type="text/css" href="{dir_css}Global.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Popup.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Dean.css" />

<script type="text/javascript" src="{dir_js}jquery.min.js"></script>
<script type="text/javascript" src="{dir_js}Global.js"></script>
<script type="text/javascript">
	
	function showSubjList(strSemList) {
		$('#tr_subject_list'+strSemList).fadeIn();
	}
	
	function showAssignSubjList() {
		if ( $('#hidden_button').val() == 0 ) {
			$('#assign_subj').slideDown();
			$('#hidden_button').val(1);
			$('#span_button').text('Hide');
		}
		else {
			window.location.href = window.location.href;
		}
	}
	
	function studNewEnrollyValue(strSubjID, strProfID, strYearID) {
		$('#but_subj_id'+strSubjID).attr('src','{dir_image}icon/loading_round.gif');
		if ( $('#hidden_subj_id'+strSubjID).val() == 0 ) {
			$.post('request.php', {AJAXPost:'ProfSubjects', subj_id:strSubjID, prof_id:strProfID, action_value:1, year_id:strYearID}, function(res) {
				$('#hidden_subj_id'+strSubjID).val(1);
				$('#but_subj_id'+strSubjID).attr('src','{dir_image}icon/checkbox_check.png');
			});
		}
		else {
			$.post('request.php', {AJAXPost:'ProfSubjects', subj_id:strSubjID, prof_id:strProfID, action_value:0, year_id:strYearID}, function(res) {
				$('#hidden_subj_id'+strSubjID).val(0);
				$('#but_subj_id'+strSubjID).attr('src','{dir_image}icon/checkbox_uncheck.png');
			});
		}
	}
	
</script>
</head>
<body>
<!-- POPUP -->{page_popup}<!-- POPUP END -->
<!-- TOP HEADER -->{page_header}<!-- TOP HEADER END -->
	<div class="main-content">
	
		<table width="0" border="0" cellspacing="0" cellpadding="0">
			<tr valign="top" align="left">
				<td width="220">
					{dean_sub_menu}
				</td>
				<td width="755">
					<div class="page-sub-content">
						<div class="ann-top-label">{prof_name} :: {course_desc}</div>
						
						<div class="search-image-design">
							<input type="hidden" id="hidden_button" value="0" />
							<div class="registration-button" onclick="showAssignSubjList();">+ <span id="span_button"></span> Assign Subject</div>

							<div class="scheduling-button" onclick="linkNewPage('FacultySchedules&fid={fid}&hash={hash}');">+ <span id="span_button"></span> My SCHEDULES</div>
						</div>
						
						<table width="750" border="0" cellspacing="0" cellpadding="0">
							<tr class="tr-header">
								<td width="20" class="td-label">&nbsp;</td>
								<td width="690" class="td-label">Assign Subject</td>
							</tr>
							<!-- BEGIN subjects -->
								<tr valign="top" onclick="showSubjList('{sem_linker_id}')">
									<td class="td-record"><strong>{numbering2}.</strong></td>
									<td class="td-record">{subject_desc}</td>
								</tr>
							<!-- END subjects -->
							<tr><td colspan="3" height="25"></td></tr>
						</table>
						
						<div class="display-none" id="assign_subj">
							<table width="750" border="0" cellspacing="0" cellpadding="0">
								<tr class="tr-header">
									<td width="20" class="td-label">&nbsp;</td>
									<td width="690" class="td-label">Semester</td>
								</tr>
								<!-- BEGIN semester -->
									<tr {bgcolor} class="hover-light" valign="top" onclick="showSubjList('{sem_linker_id}')">
										<td class="td-record"><strong>{numbering}.</strong></td>
										<td class="td-record"><strong>{sem_desc}</strong></td>
									</tr>
									{subj_list}
								<!-- END semester -->
								<tr><td colspan="3" height="5"></td></tr>
								<tr>
									<td colspan="3" height="50"></td>
								</tr>
							</table>
						</div>
					</div>
				</td>
			</tr>
		</table>
		
	</div>
<!-- FOOTER -->{page_footer}<!-- FOOTER -->
</body>
</html>
